package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.DisciplineDao;
import io.renren.modules.generator.entity.DisciplineEntity;
import io.renren.modules.generator.service.DisciplineService;



@Service("disciplineService")
public class DisciplineServiceImpl implements DisciplineService {
	@Autowired
	private DisciplineDao disciplineDao;
	
	@Override
	public DisciplineEntity queryObject(Integer disciplineno){
		return disciplineDao.queryObject(disciplineno);
	}
	
	@Override
	public List<DisciplineEntity> queryList(Map<String, Object> map){
		return disciplineDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return disciplineDao.queryTotal(map);
	}
	
	@Override
	public void save(DisciplineEntity discipline){
		disciplineDao.save(discipline);
	}
	
	@Override
	public void update(DisciplineEntity discipline){
		disciplineDao.update(discipline);
	}
	
	@Override
	public void delete(Integer disciplineno){
		disciplineDao.delete(disciplineno);
	}
	
	@Override
	public void deleteBatch(Integer[] disciplinenos){
		disciplineDao.deleteBatch(disciplinenos);
	}

	public List<DisciplineEntity> findAllDiscipline() {
		
		return disciplineDao.findAllDiscipline();
	}
	
}
